<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script type="text/javascript">
			var arr = [];
			arr[0] = 0;
			arr[1] = 1;
			arr[2] = 2;
			arr[5] = 5;
			// console.log(arr[0]);

			//-----------------数组长度(数组名.length)-----------------------------------、
			// console.log(arr.length);

			//-----------------遍历（取出数组中的所有数据）-----------------------------------、
			// console.log(arr[1]);
			// console.log(arr[2]);
			// console.log(arr[3]);
			// console.log(arr[4]);
			// console.log(arr[5]);

			for (var i = 0; i < arr.length; i++) {
				console.log(arr[i]);
			}
		</script>
	</head>
	<body>
	</body>
</html>
